<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShareFriendTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {

        //游戏应邀的分享的用户表
        Schema::create('user_share_friend', function (Blueprint $table) {
            $table->increments('id')->comment('自增id');
            $table->integer('share_user_id')->default(0)->comment('分享用户id');
            $table->integer('invited_user_id')->default(0)->comment('应邀用户id');
            $table->integer('status')->default(0)->comment('状态');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
